@import "config";

.aside {
  height: 100vh;
  background-color: #f5f5f6;
  overflow: hidden;
  transition: width 2s;
  transition-timing-function: cubic-bezier(0.25, 0.1, 5, 1);
}
.main{
  display:flex;
  padding-left: 0;
  align-items: center;
}
.show-aside{
  height: 60px;
  width: 10px;
  margin-left: 5px;
  user-select:none;
}
.show-aside:hover{
  .show-aside-top{
    transform: rotate(10deg);
  }
  .show-aside-bottom{
    transform: rotate(-10deg);
  }
}
.show-aside-top{
  position:relative;
}
.show-aside-bottom{
  position:relative;
  top: -10px;
}
.show-aside-top,.show-aside-bottom{
  height:40px;
  width: 8px;
  border: 0;
  border-radius:5px;
  background-color: #e7e7ee;
  user-select:none;
}
.sidebar-position {
  height: 100%;
  width: calc(15vw - 16px);
  padding: 0 8px;
  display: flex;
  flex-direction: column;
}

.sidebar-position div {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.sidebar-header {
  flex: 1;
  color: #5d6f6f;
  font-family: "华文彩云", sans-serif;
  font-size: $fontsize3;
  text-shadow: 2px 2px 2px #b1a7f4;
  user-select: none;
}

.sidebar-tool {
  flex: 5;
}

.sidebar-info {
  flex: 2;
}

//导航菜单
.el-menu {
  border-right: 0;
  background-color: rgba(255, 255, 255, 0);

  .el-menu-item.is-active {
    color: #4d4d4e;
    font-weight: bold;
    background: #e3e3e5;
    border-radius: 10px;
  }

  .el-menu-item {
    border-radius: 10px;
  }

  .el-menu-item:hover {
    background-color: #ededf1;
  }

  .my-menu-item {
    display: flex;
    justify-content: space-around;
  }

  .my-menu-item * {
    flex: 1;
  }
}

//userinfo
.userinfo {
  font-size: $fontsize9;
  display: flex;
  flex-direction: column;

  .userinfo-head, .userinfo-main, .userinfo-foot {
    width: 80%;
  }

  .userinfo-head {
    flex: 2;
    width: 80%;
    font-size: $fontsize7;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    * {
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }
  }

  .userinfo-main, .userinfo-foot {
    flex: 1;

    * {
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }
  }
}
.userinfo-name{
  display: flex;
  flex-direction: column;
}
